import { JSONMapping } from "../../json-mapping";
import {ObjectDtoInterface, TableColumnType} from "../../../services/sqliteDB/object.dto";
import {SyncStatus} from "../../sync-status";


export class InspectionManuals extends JSONMapping implements ObjectDtoInterface {
    static PropertyKeyToJSONKeyMap() {
        return {
            taskId: "planId",
            name: "instructionName",
        };
    }

    public id: number = null;            //    primary key
    public taskId: string = null;       // 检修的任务Id
    public name: string = null;         // 作业指导书名字
    public path: string = null;       // 本地的文件路径
    public attachmentId: number = null; // 作业指导书Id
    public isDownload: number = 0; // 是否已下载
    public syncStatus: SyncStatus = SyncStatus.None;



    constructor(json: { [key: string]: any }) {
        super(json);
        InspectionManuals.mapFromJSON(json, this);
    }
}
